﻿using System.Configuration;
using System.Data;
using System.Windows;
using KinonekoSoftware.Studio.UpgradeV3.Transformers;
using LiteDB;

namespace KinonekoSoftware.Studio.UpgradeV3
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        protected override void OnStartup(StartupEventArgs e)
        {
            var oldRepoDir = @"E:\Env\JuXiaoYou3\世界观 (2)\";
            var newRepoDir = @"E:\Env\Migrate\";
            var oldRepo    = new LiteDatabase(@"E:\Env\JuXiaoYou3\世界观 (2)\main.mgdb");
            var newRepo    = new LiteDatabase(@"E:\Env\Migrate\test.projDB");
            
            (new InstanceCacheTransformer()).Migrate(oldRepo, newRepo, oldRepoDir, newRepoDir);
            base.OnStartup(e);
        }
    }
}